app: minor code improvements
authorSébastien Wilmet <swilmet@gnome.org>
Sun, 10 Apr 2016 09:08:57 +0000 (11:08 +0200)
committerSébastien Wilmet <swilmet@gnome.org>
Sun, 10 Apr 2016 14:54:07 +0000 (16:54 +0200)
- use GDK_EVENT_PROPAGATE
- pass better zero-values to gtk_init(), since the parameters are
  pointers.

https://bugzilla.gnome.org/show_bug.cgi?id=764846

gtk/gtkapplication.c

index c96cf7a6197fc6134db6b431c025f2312fc82404..adb8778fd4370ec65c8f1f30774690a9b8a13c7d 100644 (file)
@@ -525,7 +525,7 @@ gtk_application_focus_in_event_cb (GtkWindow      *window,
 
   g_object_notify_by_pspec (G_OBJECT (application), gtk_application_props[PROP_ACTIVE_WINDOW]);
 
-  return FALSE;
+  return GDK_EVENT_PROPAGATE;
 }
 
 static void
@@ -630,7 +630,7 @@ gtk_application_startup (GApplication *g_application)
 
   gtk_action_muxer_insert (application->priv->muxer, "app", G_ACTION_GROUP (application));
 
-  gtk_init (0, 0);
+  gtk_init (NULL, NULL);
 
   application->priv->impl = gtk_application_impl_new (application, gdk_display_get_default ());
   gtk_application_impl_startup (application->priv->impl, application->priv->register_session);